package dr.joketalker.model;

import java.util.List;

import dr.joketalker.Debug.MyDebug;
import dr.joketalker.entity.Entity;
import dr.joketalker.entity.Joke;

public class PassData {
	
	
	public static PassData st_passData = null;
	
	protected List listJoke;
	
	protected MyDebug myDebug;
	
	public static PassData GetInstance(){
		if(st_passData==null){
			st_passData = new PassData();
		}
		
		return st_passData;
		
	}
	
	private PassData(){
		 myDebug = new MyDebug(this.getClass().getSimpleName());
	}
	
	
	public void saveList(List<Joke> list){
		this.listJoke = list;	
		myDebug.v("saved list with size:"+ list.size());
	}
	
	public List<Joke> getJokeList(){
		return listJoke;
	}
	

}
